import Vue from 'vue'
import VueRouter from 'vue-router'

import Blog from '../components/Blog'
import Table from '../components/Table'
import login from '../components/login'
// import hello from '../components/HelloWorld'

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    { // 配置路由路径及其跳转的组件
      path: '/', component: login // 首页
    },
    {
      path: '/table', component: Table
    },
    {
      path: '/blog', component: Blog
    }
  ],
  mode: 'history' // 去掉路径中的“#”
})
